package cn.ryh.service.impl;

import cn.ryh.entity.User;
import cn.ryh.mapper.UserMapper;
import cn.ryh.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;



/**
 * @ClassName UserServiceImpl
 * @Description 用户Service
 * @Author RaoYH
 * @Date 2018/10/22 15:27
 */
@Service("userService")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User selectById(Integer id) {

        return userMapper.selectByPrimaryKey(id);
    }
}
